<template>
    <div>
        <h2>测试</h2>
        <button @click="checkToken()">验证token</button>
    </div>
</template>

<script>
import * as apiTest from "@/api/MyApi/Test.js";
import { md5 } from "@/plugins/md5.js";

export default {
    name: "testToken",
    data() {
        return {

        }
    },
    methods: {
        checkToken() {
            console.log("校验token")
            let params = {};
            params.test1 = "测试1"
            params.test2 = "测试2"
            let data = JSON.parse(JSON.stringify(params));
            console.log('测试:',md5("123455"));

            // apiTest.testPostJwt(data).then(res=>{
            //     console.log('结果:',res.data);
            // })
        }
    }
}
</script>

<style>

</style>